<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
  <!ENTITY dc "http://purl.org/dc/elements/1.1/">
  <!ENTITY dcterms "http://purl.org/dc/terms/">
  <!ENTITY foaf "http://xmlns.com/foaf/0.1/">
  <!ENTITY a "http://xmlns.heustics.org/schema/myelin/0.1/">
  <!ENTITY m "http://xmlns.heustics.org/ontology/myelin/0.1/">
]>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:a="&a;"
  xmlns:o="&a;AgentAccount#"
  exclude-result-prefixes="xsl a o"
>    
  <xsl:template match="a:agent" mode="a:input-hidden"/> 
  <xsl:template match="a:profiles" mode="a:input-show"/>
  
  <xsl:template match="a:issuer" mode="a:input-show" name="o:issuer-input">
    <xsl:param name="params-l10n" select="$o:params-l10n"/>
    <xsl:param name="hints-l10n" select="$o:hints-l10n"/>
    <xsl:if test="@node-id">
      <div class='input text issuer'>      
        <div class="key">
          <div>
            <xsl:call-template name="a:label-class-attr"/>
            <span><xsl:value-of select="$params-l10n[@key='issuer']"/></span>
            <div class="spacer"/>
          </div>        
          <div class='hint'>
            <xsl:call-template name="a:input-hints">
              <xsl:with-param name="hint" select="$o:hints-l10n[@key='issuer']"/>
            </xsl:call-template>
            <div class="spacer"/>
          </div>
          <div class="spacer"/>
        </div>      
        <div class='value'>
          <xsl:call-template name="a:view-resource-input">
            <xsl:with-param name="node-id" select="string(@profile-id)"/>
            <xsl:with-param name="label" select="string(.)"/>
          </xsl:call-template>
          <div class='spacer'/>
        </div>
        <div class='spacer'/>
      </div>
    </xsl:if>
  </xsl:template>
  
</xsl:stylesheet>